package com.xiaoc.bulldozer.common;

import com.google.common.collect.Maps;
import com.xiaoc.bulldozer.common.model.CodeRGB;

import java.io.File;
import java.util.Map;

public class ImageConstant {


    /**
     * oss上存放推广小程序码地址目录
     */
    public static final String WX_TRADE_WXCODE_FOLDER = "wxcode_trade";


    /**
     * oss上存放朋友圈二维码目录
     */
    public static final String WX_WXCODE_FOLDER_FOR_FRIEND = "wxcode_trade_friend";


    /**
     * 带边框小程序码目录
     */
    public static final String WX_WXCODE_FRAME_FOLDER = "wxcode_frame";


    /**
     * oss海报存放地址
     */
    public static final String POSTER_FOLDER = "poster";


    /**
     * oss 分销商小程序码 存放地址
     */
    public static final String  DISTRIBUTE_CODE_FOLDER = "distribute_code";

    /**
     * oss 分销商海报 存放地址
     */
    public static final String  DISTRIBUTE_POST_FOLDER = "distribute_post";

    /**
     * 用户照片存放地址
     */
    public static final String ACCOUNT_PHOTO_FOLDER = "account_photo";



    /**
     * 朋友圈二维码
     */
    public static final String WX_CODE_TEMPLATE =  File.separator + "wxcode_template.jpeg";


    /**
     * 图片后缀
     */
    public static final String IMAGE_SUFFIX = ".jpg";



    /**
     * 小程序码边框
     */
    public static final String WX_CODE_FRAME =  File.separator + "wxcode_frame.jpeg";


    /**
     * 三峡海报名称
     */
    public static final Map<Integer, String> POSTER_CODE_MAP_SANXIA = Maps.newHashMap();

    static {

        POSTER_CODE_MAP_SANXIA.put(1, "亲情快贷");
        POSTER_CODE_MAP_SANXIA.put(2, "种养兴农贷");
        POSTER_CODE_MAP_SANXIA.put(3, "宜商快贷");
        POSTER_CODE_MAP_SANXIA.put(4, "工匠快贷");

        POSTER_CODE_MAP_SANXIA.put(5, "电商快贷");
        POSTER_CODE_MAP_SANXIA.put(6, "休闲兴农贷");
        POSTER_CODE_MAP_SANXIA.put(7, "产业兴农贷");
        POSTER_CODE_MAP_SANXIA.put(8, "税易贷");

        POSTER_CODE_MAP_SANXIA.put(9, "白领易贷");
        POSTER_CODE_MAP_SANXIA.put(10, "房主易贷");
        POSTER_CODE_MAP_SANXIA.put(11, "车主易贷");
        POSTER_CODE_MAP_SANXIA.put(12, "装修易贷");

        POSTER_CODE_MAP_SANXIA.put(13, "车位易贷");
        POSTER_CODE_MAP_SANXIA.put(14, "汽车易贷");
    }


    /**
     * 荆门海报名称
     */
    public static final Map<Integer, String> POSTER_CODE_MAP_JINGMEN = Maps.newHashMap();

    static {
        POSTER_CODE_MAP_JINGMEN.put(1, "经营易贷");
        POSTER_CODE_MAP_JINGMEN.put(2, "福e贷");
        POSTER_CODE_MAP_JINGMEN.put(3, "消费易贷");
        POSTER_CODE_MAP_JINGMEN.put(4, "税易贷");

        POSTER_CODE_MAP_JINGMEN.put(5, "乡村易贷");
        POSTER_CODE_MAP_JINGMEN.put(6, "烟商贷");
        POSTER_CODE_MAP_JINGMEN.put(7, "备货易贷");
    }


    /**
     * 襄阳海报名称
     */
    public static final Map<Integer, String> POSTER_CODE_MAP_XIANGYANG = Maps.newHashMap();

    static {

        POSTER_CODE_MAP_XIANGYANG.put(1, "市民e贷");
        POSTER_CODE_MAP_XIANGYANG.put(2, "商e贷");
        POSTER_CODE_MAP_XIANGYANG.put(3, "农e贷");
        POSTER_CODE_MAP_XIANGYANG.put(4, "白领e贷");
        POSTER_CODE_MAP_XIANGYANG.put(5, "小企业微贷");
        POSTER_CODE_MAP_XIANGYANG.put(6, "经营微贷-个人");
        POSTER_CODE_MAP_XIANGYANG.put(7, "烟商贷");
        POSTER_CODE_MAP_XIANGYANG.put(8, "白领易贷");
        POSTER_CODE_MAP_XIANGYANG.put(9, "家装贷");
        POSTER_CODE_MAP_XIANGYANG.put(10, "车位贷");
    }


    /**
     * 广水海报名称
     */
    public static final Map<Integer, String> POSTER_CODE_MAP_GUANGSHUI= Maps.newHashMap();

    static {

        POSTER_CODE_MAP_GUANGSHUI.put(1, "经营微贷");
        POSTER_CODE_MAP_GUANGSHUI.put(2, "致富贷");
        POSTER_CODE_MAP_GUANGSHUI.put(3, "房主易贷");
        POSTER_CODE_MAP_GUANGSHUI.put(4, "车主易贷");

        POSTER_CODE_MAP_GUANGSHUI.put(5, "白领e贷");
        POSTER_CODE_MAP_GUANGSHUI.put(6, "市民e贷");
        POSTER_CODE_MAP_GUANGSHUI.put(7, "商e贷");
        POSTER_CODE_MAP_GUANGSHUI.put(8, "农e贷");
        POSTER_CODE_MAP_GUANGSHUI.put(9, "纳税诚信贷");
        POSTER_CODE_MAP_GUANGSHUI.put(10, "个税贷");
        POSTER_CODE_MAP_GUANGSHUI.put(11, "纳税信用贷");
        POSTER_CODE_MAP_GUANGSHUI.put(12, "税易贷");
        POSTER_CODE_MAP_GUANGSHUI.put(13, "出口退税贷");
        POSTER_CODE_MAP_GUANGSHUI.put(14, "烟商贷");


        POSTER_CODE_MAP_GUANGSHUI.put(15, "房易融");
        POSTER_CODE_MAP_GUANGSHUI.put(16, "白领贷");
        POSTER_CODE_MAP_GUANGSHUI.put(17, "薪金贷");
        POSTER_CODE_MAP_GUANGSHUI.put(18, "市民贷");
        POSTER_CODE_MAP_GUANGSHUI.put(19, "家装贷");
        POSTER_CODE_MAP_GUANGSHUI.put(20, "车位贷");
        POSTER_CODE_MAP_GUANGSHUI.put(21, "亲情贷");
    }



    /**
     * 海报数量
     */
    public static final Map<String, Integer> IMAGE_COUNT_MAP = Maps.newHashMap();

    static {
        IMAGE_COUNT_MAP.put(BankNameConstant.SANXIA_BANK, POSTER_CODE_MAP_SANXIA.size());
        IMAGE_COUNT_MAP.put(BankNameConstant.JINGMEN_BANK, POSTER_CODE_MAP_JINGMEN.size());
        IMAGE_COUNT_MAP.put(BankNameConstant.XIANGYANG_BANK, POSTER_CODE_MAP_XIANGYANG.size());
        IMAGE_COUNT_MAP.put(BankNameConstant.GUANGSHUI_BANK, POSTER_CODE_MAP_GUANGSHUI.size());
    }


    /**
     * 存放每个银行海报
     */
    public static final Map<String, Map<Integer, String>> POSTER_CODE_MAP = Maps.newHashMap();

    static {
        POSTER_CODE_MAP.put(BankNameConstant.SANXIA_BANK, POSTER_CODE_MAP_SANXIA);
        POSTER_CODE_MAP.put(BankNameConstant.JINGMEN_BANK, POSTER_CODE_MAP_JINGMEN);
        POSTER_CODE_MAP.put(BankNameConstant.XIANGYANG_BANK, POSTER_CODE_MAP_XIANGYANG);
        POSTER_CODE_MAP.put(BankNameConstant.GUANGSHUI_BANK, POSTER_CODE_MAP_GUANGSHUI);
    }


    /**
     * 小程序码 RGB
     */
    public static final Map<String, CodeRGB> WX_CODE_RGB_MAP = Maps.newHashMap();

    static {
        WX_CODE_RGB_MAP.put(BankNameConstant.SANXIA_BANK, new CodeRGB(177, 53, 53));
        WX_CODE_RGB_MAP.put(BankNameConstant.JINGMEN_BANK, new CodeRGB(0, 64, 152));
        WX_CODE_RGB_MAP.put(BankNameConstant.XIANGYANG_BANK, new CodeRGB(0, 64, 152));
        WX_CODE_RGB_MAP.put(BankNameConstant.GUANGSHUI_BANK, new CodeRGB(0, 64, 152));
    }

}
